﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucComment" TagName="Comment" Src="../Common/Inc/Comment.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Crd1012m.aspx.cs" Inherits="Updms.Crd.Crd1012m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Crd1012m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->	
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->	
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Crd1012m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_favorite" Text="즐겨찾기" runat="server" CssClass="ibtn ibtn_favorite"></asp:linkbutton>
				<asp:linkbutton id="ibtn_move" Text="변경" runat="server" CssClass="ibtn ibtn_move" OnClientClick="chkMove();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_delete" Text="삭제" runat="server" CssClass="ibtn ibtn_delete" OnClientClick="return chkDelete()" OnClick="ibtn_delete_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch(event)" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_card" Text="카드" runat="server" /></td>
					<td class="ctl" width="23%"><asp:dropdownlist id="ddl_search_card_cd" runat="server" CssClass="ddl"></asp:dropdownlist></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_account" Text="계정" runat="server" /></td>
					<td class="ctl" width="23%"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_account', event);" /></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_biz_dt" Text="카드사용일" runat="server" /></td>
					<td class="ctl" width="23%"><asp:textbox id="txt_search_biz_from_dt" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_biz_from_dt" class="ci_calendar" runat="server" />&nbsp;~&nbsp;<asp:textbox id="txt_search_biz_to_dt" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_biz_to_dt" class="ci_calendar" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_search_contents" Text="결제내용" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_search_contents" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_search_remark" Text="비고" runat="server" /></td>
<td class="ctl"><asp:textbox id="txt_search_remark" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_search_check" Text="확인" runat="server" /></td>
					<td class="ctl"><asp:checkbox id="cb_search_check_yn" runat="server"></asp:checkbox></td>				
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 페이지모드 전환버튼 시작 -->
			<div class="page_mode_area">
				<span id="sbtn_car_mgt" onclick="setCarMgtPage();return false;" class="sbtn sbtn_search_pop" visible="false" runat="server"></span>
				<span id="btn_chg_mode" onclick="return chgMode();" runat="server"></span>
				<span id="btn_init_mode" title="초기화" class="sbtn sbtn_init" onclick="return initDetail();"></span>
			</div>
			<!-- 페이지모드 전환버튼 끝 -->
			<!-- 디테일 시작 -->
			<table class="table_detail">
				<tr>
					<td style="text-align:center;" class="ctl" width="10%" rowspan="3"><img id="img_card_image" alt="" height="60" runat="server" /></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_biz_div" Text="결제구분" runat="server" /></td>
					<td class="ctl" width="20%"><asp:radiobuttonlist id="rbl_biz_div" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow"></asp:radiobuttonlist></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_account" Text="계정" runat="server" /></td>
					<td class="ctl" width="20%"><asp:dropdownlist id="ddl_account" runat="server" CssClass="ddl" onselectedindexchanged="ddl_account_SelectedIndexChanged" AutoPostBack="true"></asp:dropdownlist></td>
					<td class="lbl" width="10%" rowspan="2"><asp:Literal id="ltr_remark" Text="비고" runat="server" /></td>
					<td class="ctl" width="20%" rowspan="2"><asp:textbox id="txt_remark" runat="server" Width="95.2%" CssClass="tb_scroll" TextMode="MultiLine" Rows="3" Height="37"></asp:textbox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_biz_dt" Text="카드사용일" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_biz_dt" runat="server" CssClass="ib_b_dt req"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_biz_dt" class="ci_calendar" runat="server" /></td>
					<td class="lbl"><asp:linkbutton id="lbtn_paymnt_dt" runat="server" ToolTip="결제예정일계산" Font-Underline="True" OnClick="lbtn_paymnt_dt_Click"><asp:Literal id="ltr_paymnt_dt" Text="결제예정일" runat="server" /></asp:linkbutton></td>
					<td class="ctl"><asp:dropdownlist id="ddl_paymnt_dt" runat="server" CssClass="ddl" Height="20px"></asp:dropdownlist></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_contents" Text="결제내용" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_contents" runat="server" Width="97.5%" CssClass="ib_b req"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_amount" Text="결제금액" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_amount" runat="server" Width="97.5%" CssClass="ib_b_R req"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_latitude_longitude" Text="위도/경도" runat="server" /></td>
					<td class="ctl">
						<ul class="horizontal">
							<li style="width:44%;"><asp:textbox id="txt_latitude" runat="server" CssClass="ib_b" Width="96%"></asp:textbox></li>
							<li style="width:1%;">&nbsp;</li>
							<li style="width:44%;"><asp:textbox id="txt_longitude" runat="server" CssClass="ib_b" Width="97%"></asp:textbox></li>
							<li style="width:1%;">&nbsp;</li>
							<li style="width:10%;"><img src="../Common/Images/map.png" align="absmiddle" alt="map" class="hand" onclick="showNaverMapEdit();" /></li>
						</ul>
					</td>
				</tr>
			</table>
			<!-- 디테일 끝 -->
			<!-- 리스트셋 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td>
						<!-- 검색어 시작 -->
						<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
						<div class="div_right"><asp:checkbox id="cb_list_all" runat="server" AutoPostBack="True" OnCheckedChanged="cb_list_all_CheckedChanged" ToolTip="Show All"></asp:checkbox></div>
						<!-- 검색어 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 리스트 시작 -->
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" DataKeyNames="Seq,Card_Cd,Biz_Div,Account,Confirm_Yn,Remark,Latitude,Longitude" ShowFooter="True">
							<Columns>
								<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheck('GridView1');&quot;&gt;S&lt;/a&gt;">
									<ItemTemplate>
										<input id="cb_check" class="cb" type="checkbox" onclick="reverseRow('GridView1', 0);" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="2%" />
								</asp:TemplateField>
								<asp:BoundField HeaderText="번호" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Seq" HeaderText="Seq(X)" Visible="False" />
								<asp:BoundField DataField="Card_Cd" HeaderText="Card_Cd(X)" Visible="False" />
								<asp:BoundField DataField="Card_Nm" HeaderText="카드" HtmlEncode="False" >
									<ItemStyle Width="8%" HorizontalAlign="Center" />
								</asp:BoundField>
								<asp:BoundField DataField="Check_Yn" HeaderText="Check_Yn(X)" Visible="False" />
								<asp:BoundField DataField="Check_Yn_Icon" HeaderText="확인" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Biz_Div" HeaderText="Biz_Div(X)" Visible="False" />
								<asp:BoundField DataField="Biz_Div_Nm" HeaderText="결제구분" HtmlEncode="False" >
									<ItemStyle Width="8%" HorizontalAlign="Center" />
								</asp:BoundField>
								<asp:BoundField DataField="Account" HeaderText="Account(X)" Visible="False" />
								<asp:BoundField DataField="Account_Nm" HeaderText="계정" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="16%" />
								</asp:BoundField>
								<asp:TemplateField HeaderText="결제내용">
									<ItemTemplate>
										<asp:LinkButton ID="lbtn_rc" runat="server" Text='<%# Bind("Contents") %>'></asp:LinkButton>
									</ItemTemplate>
									<HeaderStyle CssClass="lbtn_rc balloon" />
									<ItemStyle HorizontalAlign="Left" Width="28%" />
								</asp:TemplateField>
								<asp:BoundField DataField="Amount" HeaderText="결제금액" DataFormatString="{0:#,##0}" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Right" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="Biz_Dt" HeaderText="카드사용일" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="7%" />
								</asp:BoundField>
								<asp:BoundField DataField="Paymnt_Dt" HeaderText="결제예정일" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="7%" />
								</asp:BoundField>
								<asp:BoundField DataField="Confirm_Yn" HeaderText="Confirm_Yn(X)" Visible="False" />
								<asp:BoundField DataField="Confirm_Yn_Icon" HeaderText="확정" HeaderStyle-Font-Underline="true" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Remark" HeaderText="Remark(X)" Visible="False" />
								<asp:BoundField DataField="NaverMap_Link" HeaderText="위치" HtmlEncode="False" >
									<HeaderStyle Font-Underline="True" />
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Latitude" HeaderText="Latitude(X)" Visible="False" />
								<asp:BoundField DataField="Longitude" HeaderText="Longitude(X)" Visible="False" />
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 페이징 시작 -->
						<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
						<div class="div_right"><asp:label id="lbl_page" runat="server"></asp:label></div>
						<!-- 페이징 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<div id="div_search_account" class="div_scroll div_multi_box" style="display:none;height:200px;width:200px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_account" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<!-- 설명 시작 -->
			<ucComment:Comment id="Comment" TagPrefixs="Crd1012m" runat="server"></ucComment:Comment>
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:Label id="lbl_confirm_yn" runat="server"></asp:Label>
			<asp:linkbutton id="lbtn_check_yn" runat="server" OnClick="lbtn_check_yn_Click" />
			<asp:linkbutton id="lbtn_confirm" runat="server" OnClick="lbtn_confirm_Click" />
			<asp:linkbutton id="lbtn_init_detail" runat="server" OnClick="lbtn_init_detail_Click" />
			<asp:linkbutton id="lbtn_chg_mode" runat="server" OnClick="lbtn_chg_mode_Click" />
			
			<input id="h_seq" type="hidden" name="h_seq" runat="server" />
			<input id="h_no" type="hidden" name="h_no" runat="server" />
			<input id="h_confirm_yn" type="hidden" name="h_confirm_yn" runat="server" />
			</div>
			<!-- 히든값 끝 -->
			<!-- FilteredTextBoxExtender 시작 -->
			<act:FilteredTextBoxExtender ID="fte_amount"
				runat="server"
				TargetControlID="txt_amount"
				FilterType="Custom, Numbers"
				ValidChars=",-">
			</act:FilteredTextBoxExtender>
			<act:FilteredTextBoxExtender ID="fte_latitude"
				runat="server"
				TargetControlID="txt_latitude"
				FilterType="Numbers">
			</act:FilteredTextBoxExtender>
			<act:FilteredTextBoxExtender ID="fte_longitude"
				runat="server"
				TargetControlID="txt_longitude"
				FilterType="Numbers">
			</act:FilteredTextBoxExtender>
			<!-- FilteredTextBoxExtender 끝 -->
			<!-- CalendarExtender 시작 -->
			<act:CalendarExtender ID="ce_search_biz_from_dt" 
				TargetControlID="txt_search_biz_from_dt"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_search_biz_from_dt"
				EnableViewState="False"
				CssClass="calendar"
				runat="server">
			</act:CalendarExtender>
		
			<act:CalendarExtender ID="ce_search_biz_to_dt" 
				runat="server" 
				TargetControlID="txt_search_biz_to_dt" 
				Format="yyyy-MM-dd" 
				PopupButtonID="ci_search_biz_to_dt" 
				EnableViewState="False" 
				BehaviorID="bi_search_biz_to_dt" 
				CssClass="calendar">
			</act:CalendarExtender>
			<act:CalendarExtender ID="ce_biz_dt" 
				runat="server" 
				OnClientDateSelectionChanged="setPaymentDt" 
				TargetControlID="txt_biz_dt" 
				Format="yyyy-MM-dd" 
				PopupButtonID="ci_biz_dt" 
				EnableViewState="False" 
				BehaviorID="bi_biz_dt" 
				CssClass="calendar">
			</act:CalendarExtender>
			<!-- CalendarExtender 끝 -->
			<!-- 자동완성 시작 -->
			<act:AutoCompleteExtender ID="ace_search_contents" 
				runat="server" 
				TargetControlID="txt_search_contents" 
				ServiceMethod="GetSearchData" 
				ServicePath="../Common/Inc/AutoCompleteWebService.asmx" 
				MinimumPrefixLength="1" 
				CompletionSetCount="20" 
				CompletionInterval="800" 
				EnableCaching="true" 
				UseContextKey="true"
				ContextKey="Crd1012m"
				CompletionListCssClass="ace_List"
				CompletionListItemCssClass="ace_ListItem"
				CompletionListHighlightedItemCssClass="ace_HighlightedItem" >
			</act:AutoCompleteExtender>
			<act:AutoCompleteExtender ID="ace_contents" 
				runat="server" 
				TargetControlID="txt_contents" 
				ServiceMethod="GetSearchData" 
				ServicePath="../Common/Inc/AutoCompleteWebService.asmx" 
				MinimumPrefixLength="1" 
				CompletionSetCount="20" 
				CompletionInterval="800" 
				EnableCaching="true" 
				UseContextKey="true"
				ContextKey="Crd1012m"
				CompletionListCssClass="ace_List"
				CompletionListItemCssClass="ace_ListItem"
				CompletionListHighlightedItemCssClass="ace_HighlightedItem" >
			</act:AutoCompleteExtender>
			<!-- 자동완성 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;
		
		//날짜형식
		if(!isDateHyphen($F("txt_search_biz_from_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_search_biz_from_dt", keyCode); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}
		if(!isDateHyphen($F("txt_search_biz_to_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_search_biz_to_dt", keyCode); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}
		
		// 날짜 체크
		if(!isDateSeq($F("txt_search_biz_from_dt"), $F("txt_search_biz_to_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_022), null, null, keyCode); //시작일자가 종료일자보다 늦을수 없습니다
			return false;
		}
		return true;
	}

	//엔터검색
	function enterSearchOnPage(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			if (chkSearch(evt)) {
				__doPostBack('ibtn_search', '');
			}
		}
	}
	
	//저장
	function chkSave() {
		if ($F("txt_biz_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_033), setFocus, "txt_biz_dt"); //카드사용일을 입력해 주세요
			return false;
		}
		if ($F("ddl_paymnt_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_143), setFocus, "ddl_paymnt_dt"); //결제예정일을 선택하세요
			return false;
		}
		if ($F("txt_contents").blank()) {
			msgBox.alert(getMsg(MSG_ERR_034), setFocus, "txt_contents"); //결제내용을 입력해 주세요
			return false;
		}
		if ($F("txt_amount").blank()) {
			msgBox.alert(getMsg(MSG_ERR_035), setFocus, "txt_amount"); //금액을 입력해 주세요
			return false;
		}
		
		//날짜체크
		if(!isDateHyphen($F("txt_biz_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_biz_dt"); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}

		//날짜체크
		if (!isDateSeq($F("txt_biz_dt"), $F("ddl_paymnt_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_166), null, null); //카드사용일이 결제예정일보다 늦을수 없습니다
			return false;
		}

		var pk = $get("lbl_pk").innerHTML;
		var MSG_ID = (pk == "") ? MSG_CFM_000 : MSG_CFM_028; //저장/수정
		msgBox.confirm(getMsg(MSG_ID), doSave); //저장하시겠습니까?

		return false;
	}
	
	//삭제
	function chkDelete() {
		if(!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_053));	//삭제할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_005), doDelete);	//삭제하시겠습니까? 확정된 항목은 삭제되지 않습니다
		return false;
	}

	//이동
	function chkMove() {
		var a = $get("lbl_pk").innerHTML;
		var b = $F("ddl_search_card_cd");
		var c = $F("txt_biz_dt");
		var d = $F("txt_contents");

		goCardMgtMovePage(a, b, c, encodeURIComponent(d));
	}
	
	// 결제예정일 누르면 체크
	function chkPaymntDt() {
		if ($F("txt_biz_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_033), setFocus, "txt_biz_dt"); //카드사용일을 입력해 주세요
			return false;
		}
	}
	
	//확인(리스트에서)
	function setCheckYn(seq) {
		$("h_seq").value = seq;
		__doPostBack('lbtn_check_yn','');
	}
	
	//확정(리스트에서)
	function execConfirm(seq, confirm_yn) {
		$("h_seq").value = seq;
		$("h_confirm_yn").value = confirm_yn;

		__doPostBack('lbtn_confirm','');
	}
	
	//디테일 초기화
	function initDetail() {
		__doPostBack('lbtn_init_detail','');
	}
	
	//페이지모드 변경
	function chgMode() {
		__doPostBack('lbtn_chg_mode','');
	}

	//차량관리랑 연계
	function setCarMgtPage() {
		var a = $F("ddl_account");
		var b = $F("txt_biz_dt");
		var c = $F("txt_amount");
		var d = $F("txt_contents");

		goCarMgtPage(a, b, c, d);
	}

	//지도팝업
	function showNaverMapEdit() {
		goNaverMapExEdit($F("txt_latitude"), $F("txt_longitude"), "txt_latitude", "txt_longitude");
	}

	//카드사용일 날짜선택시 결제예정일 바인딩
	function setPaymentDt() {
		__doPostBack('lbtn_paymnt_dt', '');
	}

</script>
</body>
</html>